from pygame import *
import pygame
import sys
from pygame.examples import liquid, moveit
from pygame.examples import aacircle, aliens, arraydemo
from pygame.examples import blend_fill, blit_blends, camera
from pygame.examples import camera, chimp, cursors, freetype_misc
from pygame.examples import eventlist, freetype_misc, fastevents, fonty
from pygame.examples import glcube,headless_no_windows_needed,liquid
from pygame.examples import moveit,mask,midi,oldalien,overlay
from pygame.examples import pixelarray,playmus,prevent_display_stretching
from pygame.examples import scroll,stars

if __name__ == '__main__':
    pass
    # scroll.main('a.png')
    # playmus.main('a.png')
    # pixelarray.main()
    # overlay.main('a.png')
    # oldalien.main()
    # midi.main()
    # mask.main('a.png')
    # headless_no_windows_needed.scaleit()
    # headless_no_windows_needed.main('a.png','b.png',100,100)  #缩放图片,待定,
    # glcube.main() # 需要pyopengl库
    # fonty.main()# 字体库
    # freetype_misc.run() # 字体样式
    # fastevents.main() # 测试 压力
    # eventlist.main()
    # liquid.main() # 水波动
    # moveit.main() #移动
    # pygame.init()
    aliens.main()  #外星人 扔炸弹
    # arraydemo.main() #numpy ,保存图片
    # blend_fill.main()
    # blit_blends.main()
    # main_dir = os.path.split(os.path.abspath(__file__))[0]
    # data_dir = os.path.join(main_dir, 'data')
    # print(blit_blends.main_dir)
    # print(blit_blends.data_dir)

    # camera.main()
    # cursors.main()
    # chimp.main() # 打猩猩

    # screen = pygame.display.set_mode((640, 480))
    #
    # while 1:
    #     pass
    #     for event in pygame.event.get():
    #         if event.type in (pygame.QUIT, pygame.KEYDOWN):
    #         # if event.type in (2, 4):
    #             print('.............')
    #             sys.exit()
    #         print(event.type)
    #         print(type(event.type))
    #     pygame.display.update()

    # aacircle.main()
    # m = pygame.event
    # print(type(m))
    # print(dir(m))
    # for i in range(10):
    #
    #     print(m.Event(i))
